<template>
  <div class="search-container">
    <!-- modal -->
    <a-modal
      wrap-class-name="modal-wrap-container"
      :title="marketModel.title"
      :visible="marketModel.visible"
      v-bind="modalProps"
      :confirm-loading="marketModel.confirmLoading"
      width="40%"
      @ok="modalSubmit(marketModel)"
      @cancel="modalCancel(marketModel)"
    >
      <Market :ref="marketModel.ref" />
    </a-modal>
    <RoleButton v-auth="'add_markerting_projects'" role="add_markerting_projects">新建营销方案</RoleButton>
    <!-- <a-button type="primary"></a-button> -->
  </div>
</template>

<script>
import modal from './modal/modal'
import Market from './modal/Market'

export default {
  mixins: [modal],

  components: {
    Market,
  },
}
</script>
